{% extends "base.html" %}

{% block title %}Add{% endblock %}

{% block subtitle %}Add car{% endblock %}

{% block content %}
    {% if type == "truck" %}
        <form method="POST" action="/create_truck">
            <label>Truck</label><br><br>
            <label for="year_made">Year:</label>
            <input type="text" id="year_made_t" name="year_made" required><br><br>
            <label for="model">Model:</label>
            <input type="text" id="model_t" name="model" required><br><br>
            <label for="capacity">Capacity:</label>
            <input type="text" id="capacity" name="capacity" required><br><br>
            <input type="submit" value="Submit">
        </form>
    {% endif %}
    {% if type == "car" %}
        <form method="POST" action="/create_car">
            <label>Car</label><br><br>
            <label for="year_made">Year:</label>
            <input type="text" id="year_made" name="year_made" required><br><br>
            <label for="model">Model:</label>
            <input type="text" id="model" name="model" required><br><br>
            <input type="submit" value="Submit">
        </form>
    {% endif %}

{% endblock %}